
// STEP :
//> tar -jxf valgrind-3.12.0.tar.bz2
//> cd /proj/MPS_DEV_REPO/xchonxu/tools/valgrind-3.12.0
//> vim README
//> ls
//> ./autogen.sh
//> ./configure --prefix=/home/xchonxu/bin
//> make
//> make install


// package at : http://valgrind.org/downloads/current.html#current
// valgrind --tool=memcheck --leak-check=full ./testValgrind

#include <iostream>

using namespace std;

int main()
{
    int *a = new int(2);

    //delete a;

    return 0;
}

/*
 *
 ==25560== HEAP SUMMARY:
==25560==     in use at exit: 4 bytes in 1 blocks
==25560==   total heap usage: 2 allocs, 1 frees, 72,708 bytes allocated
==25560==
==25560== 4 bytes in 1 blocks are definitely lost in loss record 1 of 1
==25560==    at 0x4C3045A: operator new(unsigned long) (vg_replace_malloc.c:344)
==25560==    by 0x10879B: main (valgrind.cpp:22)

 *
 * */